package com.ego.order.feign;

import com.ego.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: ego
 * @description: 会员远程服务
 * @author: KamTang
 * @create: 2022-12-20 14:11
 **/
@FeignClient("ego-member")
public interface MemberFeign {

    /**
     * 根据会员ID获取地址信息
     * @param memberId 会员Id
     * @return @see
     * @see Result
     */
    @GetMapping("/member/receive-address/gets/{memberId}")
    Result getReceiveAddresses(@PathVariable("memberId") Long memberId);

    /**
     * 根据地址id获取收货信息
     * @param id 会员收货地址id
     * @return @see
     * @see Result
     */
    @GetMapping("/member/receive-address/get/{id}")
    Result getReceiveAddress(@PathVariable("id") Long id);

}
